import { App } from 'vue'
import ElDesignForm from './core/element/ElDesignForm.vue'
import ElGenerateForm from './core/element/ElGenerateForm.vue'
import Icons from './icons'
import './styles/index.styl'

Icons.install()

const ElDesignFormRegistry:any = {}
const ElGenerateFormRegistry:any = {}

ElDesignFormRegistry.install = (app: App) => {
  app.component(ElDesignForm.name, ElDesignForm)
}

ElGenerateFormRegistry.install = (app: App, request:any) => {
  ElGenerateForm.props.request = {
    type: Function,
    default: request
  }
  app.component(ElGenerateForm.name, ElGenerateForm)
}

export {
  ElDesignFormRegistry,
  ElGenerateFormRegistry
}
